package com.estructura.mapadrid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class UsuarioConocido extends Activity implements OnClickListener{

	 @Override
	 public void onCreate(Bundle savedInstanceState) {
	     super.onCreate(savedInstanceState);
	     setContentView(R.layout.usuario_conocido);
	     
	     View botonE = findViewById(R.id.entrar);
	     botonE.setOnClickListener(this);
	     
	     View botonR = findViewById(R.id.registro);
	     botonR.setOnClickListener(this);
	 }
	 
		 
	 public void onClick(View v) {		 
		 if(v.getId()==findViewById(R.id.entrar).getId()){
			 Intent i1 = new Intent(this, MenuPrincipal.class );
	         startActivity(i1);
		}
		 if(v.getId()==findViewById(R.id.registro).getId()){
			 Intent i2 = new Intent(this, UsuarioNuevo.class );
	         startActivity(i2);
		 }
	}

}
